package com.fwj.common.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: fwj
 * @Data: 2022/4/15 15:24
 * @Version 1.0
 * @Description:
 */

@Setter
@Getter
@Table(name = "tbl_attach")
public class Attachment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 附件表主键
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    @ApiModelProperty(value="附件表主键")
    private Long id;

    /**
     * 附件ID
     */
    @Column(name = "attach_no")
    @ApiModelProperty(value="附件ID")
    private String attachNo;

    /**
     * 附件名
     */
    @Column(name = "attach_name")
    @ApiModelProperty(value="附件名")
    private String attachName;

    /**
     * 附件范围
     */
    @Column(name = "scope")
    @ApiModelProperty(value="附件范围")
    private String scope;

    /**
     * 附件类型
     */
    @Column(name = "type")
    @ApiModelProperty(value="附件类型")
    private String type;

    /**
     * 用户头像
     * */
    @Column(name = "file_size")
    @ApiModelProperty(value="附件大小")
    private Long fileSize;

    /**
     * 创建时间
     */
    @Column(name = "location")
    @ApiModelProperty(value="附件相对地址")
    private String location;

    /**
     * 上传者
     */
    @Column(name = "creator")
    @ApiModelProperty(value="上传者")
    private Long creator;

    /**
     * 附件描述
     */
    @Column(name = "description")
    @ApiModelProperty(value="附件描述")
    private String description;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @Temporal(TemporalType.TIMESTAMP)
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @Temporal(TemporalType.TIMESTAMP)
    @ApiModelProperty(value="更新时间")
    private Date updateTime;

    /**
     * 附件状态
     */
    @Column(name = "status")
    @ApiModelProperty(value="附件状态")
    private String status;


    /**
     * 是否安全下载（是否限制用户下载）
     */
    @Column(name = "is_secure")
    @ApiModelProperty(value="是否安全下载（是否限制用户下载）")
    private String isSecure;

 }
